/*
package org.carl.grpc.could.common.eureka.service

import io.grpc.Channel
import net.devh.boot.grpc.client.inject.GrpcClient
import org.carl.grpc.cloud.service.a.GreeterGrpc
import org.carl.grpc.cloud.service.a.GreeterOuterClass
import org.springframework.stereotype.Service

*/
/**
 * email carl.chen@bk.ru
 * @Author: 陈青松
 * @Date: 2019/4/12 0:41
 *//*

@Service
class GrpcClientService {

    @GrpcClient("service-a")
    private val serverChannel: Channel? = null

    fun sendMessage(name: String): String {
        val stub = GreeterGrpc.newBlockingStub(serverChannel)
        val response = stub.sayHello(GreeterOuterClass.HelloRequest.newBuilder().setName(name).build())
        return response.message
    }
}*/
